package com.allwees.bs.module.lms.vo;

import lombok.Data;

import java.util.Optional;

@Data
public class TrackDetails {
    private TrackHeader meta;
    private TrackBody data;
    private SignInfo verifyInfo;

    public boolean isDelivered(){
        return Optional.ofNullable(this.getData()).map(TrackBody::getStatus).map("delivered"::equals).orElse(false);
    }
}